﻿using System.Collections.Generic;

namespace PropertyExpression.ControllableQuery.Test.Queries
{
    public partial class EnumerableQuery : IQuery<IPublicationInfo>
    {
        private readonly IEnumerable<PublicationQueryItem> publicationQueryItems;

        public EnumerableQuery(IEnumerable<PublicationQueryItem> publicationQueryItems)
        {
            this.publicationQueryItems = publicationQueryItems;
        }
    }

    public interface IPublicationInfo
    {
    }

    public class PublicationQueryItem
    {
        public readonly IOptionalValueSwitcher<PublicationCodeParam> PublicationCodeSwitcher;

        public PublicationQueryItem(IOptionalValueSwitcher<PublicationCodeParam> publicationCodeSwitcher)
        {
            PublicationCodeSwitcher = publicationCodeSwitcher;
        }
    }
}